<h2>Настройки вашего профиля, <?=$this->data['user']['user_name'];?></h2>
<p>Ваш баланс <?=$this->data['user']['user_balance'];?> (<a href="#">Пополнить баланс</a>)</p>

<?if(isset($message)):?>
<p <?if($message['type']):?>style="color: green"<?else:?>style="color: red"<?endif;?>><?=$message['text'];?></p>
<?endif;?>

<?if($this->data['user']['user_source'] == null):?>
<p>Смена пароля</p>
<form method="post" action="/settings">
    <input type="hidden" name="action" value="change_pwd"/>
    <label for="current_password">Текущий пароль: </label>
    <input type="password" id="current_password" name="current_password" /><br />
    <label for="new_password">Новый пароль: </label>
    <input type="password" id="new_password" name="new_password" /><br />
    <input type="submit" />
</form>
<?endif;?>